package com.panshi.pojo;

import io.swagger.annotations.ApiModel;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import java.io.Serializable;
import java.util.Date;

@Repository
@Scope("prototype")
@ApiModel("新闻实体类")
public class Hotnews implements Serializable {
    private Integer cid;    //新闻id
    private String titile;  //标题
    private String ccontent;//内容
    private Date cdate;     //上传时间
    private Integer uid;    //用户id
    private String cauthor; //用户名
    private Integer heat;   //热度

    public Hotnews() {
    }

    public Hotnews(Integer cid, String titile, String ccontent, Date cdate, Integer uid, String cauthor, Integer heat) {
        this.cid = cid;
        this.titile = titile;
        this.ccontent = ccontent;
        this.cdate = cdate;
        this.uid = uid;
        this.cauthor = cauthor;
        this.heat = heat;
    }

    @Override
    public String toString() {
        return "Hotnews{" +
                "cid=" + cid +
                ", titile='" + titile + '\'' +
                ", ccontent='" + ccontent + '\'' +
                ", cdate=" + cdate +
                ", uid=" + uid +
                ", cauthor='" + cauthor + '\'' +
                ", heat=" + heat +
                '}';
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public String getTitile() {
        return titile;
    }

    public void setTitile(String titile) {
        this.titile = titile;
    }

    public String getCcontent() {
        return ccontent;
    }

    public void setCcontent(String ccontent) {
        this.ccontent = ccontent;
    }

    public Date getCdate() {
        return cdate;
    }

    public void setCdate(Date cdate) {
        this.cdate = cdate;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getCauthor() {
        return cauthor;
    }

    public void setCauthor(String cauthor) {
        this.cauthor = cauthor;
    }

    public Integer getHeat() {
        return heat;
    }

    public void setHeat(Integer heat) {
        this.heat = heat;
    }
}
